﻿@model EquipmentEditLocalModel
@{
    if (Model == null || Model.Id == 0)
    {
        ViewBag.Title = "新设备备案";
    }
    else
    {
        ViewBag.Title = "修改设备备案信息";
    }
}
@section JS
{
    <script src="@Url.Content("~/Scripts/Equipment.js")" type="text/javascript"></script>
}
@section BodyNav
{
    > @Html.ActionLink("备案设备列表", "List", "Equipment") > 设备备案
}
@Html.ValidationSummary()
@using (Html.BeginForm())
{
    <table class="edit">
        <tr>
            <th width="150">
                @Html.LabelFor(m => m.Eq_Name)
            </th>
            <td>
                @Html.DropDownListFor(m => m.Eq_Name, ViewBag.Names as IList<SelectListItem>, "请选择", null)
                @Html.ValidationMessageFor(m => m.Eq_Name)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_Type)
            </th>
            <td>@Html.EditorFor(m => m.Eq_Type)@Html.ValidationMessageFor(m => m.Eq_Type)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_OwnerCompany)
            </th>
            <td>@Html.HiddenFor(m => m.Eq_OwnerCompanyId)
                @Html.EditorFor(m => m.Eq_OwnerCompany)
            </td>
        </tr>
        <tr>
            <th>
                地址
            </th>
            <td>
                <div id="OwnerAddress">@Html.DisplayFor(m => m.Eq_OwnerCompanyAddress)
                </div>
                @Html.HiddenFor(m => m.Eq_OwnerCompanyAddress)
            </td>
        </tr>
        <tr>
            <th>
                负责人
            </th>
            <td>
                @Html.EditorFor(m => m.Eq_OwnerCompanyLegal)
            </td>
        </tr>
        <tr>
            <th>
                联系电话
            </th>
            <td>
                @Html.EditorFor(t => t.Eq_OwnerCompanyPhone)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_SpecCertNo)
            </th>
            <td>@Html.EditorFor(m => m.Eq_SpecCertNo)@Html.ValidationMessageFor(m => m.Eq_SpecCertNo)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_CertNo)
            </th>
            <td>@Html.EditorFor(m => m.Eq_CertNo)@Html.ValidationMessageFor(m => m.Eq_CertNo)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_ProducerCompany)
            </th>
            <td>
                <div class="LocalItem">
                    @Html.HiddenFor(m => m.Eq_ProducerCompanyId)
                    @Html.EditorFor(m => m.Eq_ProducerCompany)
                </div>
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_MadeDate)
            </th>
            <td>
                @Html.TextBoxFor(m => m.Eq_MadeDate)
                @Html.ValidationMessageFor(m => m.Eq_MadeDate)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_MadeNo)
            </th>
            <td>@Html.EditorFor(m => m.Eq_MadeNo)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.LimitedYear)
            </th>
            <td>@Html.EditorFor(m => m.LimitedYear)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Eq_Comment)
            </th>
            <td>@Html.EditorFor(m => m.Eq_Comment)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="保存" class="btnBtn" />
                <input type="button" value="返回" class="btnBtn" onclick="history.back(-1)" />
            </td>
        </tr>
    </table>
}
<div class="info">
    <h2>
        设备备案操作说明</h2>
    <ol>
        <li>严格按照报备单位所填写《山西省建筑起重机械备案登记表》进行录入。</li>
        <li>须对所备案设备的资料资料进行审核后再进行备案操作。</li>
        <li>产权单位应为已备案机构中有租赁资质的企业，如果下来菜单中没有所填单位，请先新增机构备案。</li>
        <li>请准确录入档案所在的档案柜和档案盒位置，以便日后查找。</li>
    </ol>
</div>
